package com.quick.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.quick.common.bean.Car;
import com.quick.common.bean.Driver;
import com.quick.common.dto.ImageDTO;
import com.quick.common.dto.LoginDTO;
import com.quick.common.dto.PasswordDTO;
import com.quick.common.dto.RegisterDTO;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
@RequestMapping("/driver")
public interface IDriverService {
    String driverLogin(LoginDTO loginDTO);
    void driverRegister(RegisterDTO registerDTO);
    List<Driver> nearByFreeDrivers(Double longitude, Double latitude);
    void editStatus(Integer id, Byte status);
    Driver getDriverById(Integer id);


    int updateDriver(Driver driver);
    int deleteDriver(Integer id);
    List<Driver> getAll(Driver driver);
    IPage<Driver> getPage(Driver driver, IPage page);
    String upload(ImageDTO imageDTO);
    void changePassword(PasswordDTO passwordDTO);

}
